package com.splant.android.smart.UILevel.widget;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.PopupWindow;

import com.splant.android.R;

/**
 * Created by Administrator on 2017/8/8.
 */

public class WaterMonth {

    public enum ShowMode
    {
        show,
        set
    }
    private Activity activity;
    private ShowMode showMode;
    public WaterMonth(Activity activity,ShowMode showMode)
    {
           this.activity=activity;
           this.showMode=showMode;
    }
    public void show(String dates,View view)
    {
        View popupView = activity.getLayoutInflater().inflate(R.layout.garden_month_popupwindow, null);

        PopupWindow window = new PopupWindow(popupView, ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT);

        window.setFocusable(true);

        window.setOutsideTouchable(true);

        window.showAsDropDown(view, 0, 2);
    }



}
